home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / GXFonts.a < prev    next >
Text File  |  1996-05-01  |  14KB  |  635 lines

  1. ;
  2. ;    File:        GXFonts.a
  3. ;
  4. ;    Contains:    QuickDraw GX font routine interfaces.
  5. ;
  6. ;    Version:    Technology:    Quickdraw GX 1.1
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__GXFONTS__') = 'UNDEFINED' THEN
  19. __GXFONTS__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.     IF &TYPE('__GXMATH__') = 'UNDEFINED' THEN
  25.     include 'GXMath.a'
  26.     ENDIF
  27.     IF &TYPE('__GXTYPES__') = 'UNDEFINED' THEN
  28.     include 'GXTypes.a'
  29.     ENDIF
  30.     IF &TYPE('__SCALERSTREAMTYPES__') = 'UNDEFINED' THEN
  31.     include 'ScalerStreamTypes.a'
  32.     ENDIF
  33.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  34. ;
  35. ; extern gxFont GXNewFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes)
  36. ;
  37.     IF ¨ GENERATINGCFM THEN
  38.         Macro
  39.         _GXNewFont
  40.             move.w              #$0201,D0
  41.             dc.w                $A832
  42.         EndM
  43.     ELSE
  44.         IMPORT_CFM_FUNCTION GXNewFont
  45.     ENDIF
  46.  
  47. ;
  48. ; extern gxFontStorageTag GXGetFont(gxFont fontID, gxFontStorageReference *reference, gxFontAttribute *attributes)
  49. ;
  50.     IF ¨ GENERATINGCFM THEN
  51.         Macro
  52.         _GXGetFont
  53.             move.w              #$0202,D0
  54.             dc.w                $A832
  55.         EndM
  56.     ELSE
  57.         IMPORT_CFM_FUNCTION GXGetFont
  58.     ENDIF
  59.  
  60. ;
  61. ; extern gxFont GXFindFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute *attributes)
  62. ;
  63.     IF ¨ GENERATINGCFM THEN
  64.         Macro
  65.         _GXFindFont
  66.             move.w              #$0203,D0
  67.             dc.w                $A832
  68.         EndM
  69.     ELSE
  70.         IMPORT_CFM_FUNCTION GXFindFont
  71.     ENDIF
  72.  
  73. ;
  74. ; extern void GXSetFont(gxFont fontID, gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes)
  75. ;
  76.     IF ¨ GENERATINGCFM THEN
  77.         Macro
  78.         _GXSetFont
  79.             move.w              #$0204,D0
  80.             dc.w                $A832
  81.         EndM
  82.     ELSE
  83.         IMPORT_CFM_FUNCTION GXSetFont
  84.     ENDIF
  85.  
  86. ;
  87. ; extern void GXDisposeFont(gxFont fontID)
  88. ;
  89.     IF ¨ GENERATINGCFM THEN
  90.         Macro
  91.         _GXDisposeFont
  92.             move.w              #$0205,D0
  93.             dc.w                $A832
  94.         EndM
  95.     ELSE
  96.         IMPORT_CFM_FUNCTION GXDisposeFont
  97.     ENDIF
  98.  
  99. ;
  100. ; extern void GXChangedFont(gxFont fontID)
  101. ;
  102.     IF ¨ GENERATINGCFM THEN
  103.         Macro
  104.         _GXChangedFont
  105.             move.w              #$0206,D0
  106.             dc.w                $A832
  107.         EndM
  108.     ELSE
  109.         IMPORT_CFM_FUNCTION GXChangedFont
  110.     ENDIF
  111.  
  112. ;
  113. ; extern gxFontFormatTag GXGetFontFormat(gxFont fontID)
  114. ;
  115.     IF ¨ GENERATINGCFM THEN
  116.         Macro
  117.         _GXGetFontFormat
  118.             move.w              #$0207,D0
  119.             dc.w                $A832
  120.         EndM
  121.     ELSE
  122.         IMPORT_CFM_FUNCTION GXGetFontFormat
  123.     ENDIF
  124.  
  125. ;
  126. ; extern gxFont GXGetDefaultFont(void )
  127. ;
  128.     IF ¨ GENERATINGCFM THEN
  129.         Macro
  130.         _GXGetDefaultFont
  131.             move.w              #$0208,D0
  132.             dc.w                $A832
  133.         EndM
  134.     ELSE
  135.         IMPORT_CFM_FUNCTION GXGetDefaultFont
  136.     ENDIF
  137.  
  138. ;
  139. ; extern gxFont GXSetDefaultFont(gxFont fontID)
  140. ;
  141.     IF ¨ GENERATINGCFM THEN
  142.         Macro
  143.         _GXSetDefaultFont
  144.             move.w              #$0209,D0
  145.             dc.w                $A832
  146.         EndM
  147.     ELSE
  148.         IMPORT_CFM_FUNCTION GXSetDefaultFont
  149.     ENDIF
  150.  
  151. ;
  152. ; extern long GXFindFonts(gxFont familyID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long length, const unsigned char text[2147483647], long index, long count, gxFont fonts[2147483647])
  153. ;
  154.     IF ¨ GENERATINGCFM THEN
  155.         Macro
  156.         _GXFindFonts
  157.             move.w              #$020A,D0
  158.             dc.w                $A832
  159.         EndM
  160.     ELSE
  161.         IMPORT_CFM_FUNCTION GXFindFonts
  162.     ENDIF
  163.  
  164. ;
  165. ; extern long GXCountFontGlyphs(gxFont fontID)
  166. ;
  167.     IF ¨ GENERATINGCFM THEN
  168.         Macro
  169.         _GXCountFontGlyphs
  170.             move.w              #$020B,D0
  171.             dc.w                $A832
  172.         EndM
  173.     ELSE
  174.         IMPORT_CFM_FUNCTION GXCountFontGlyphs
  175.     ENDIF
  176.  
  177. ;
  178. ; extern long GXCountFontTables(gxFont fontID)
  179. ;
  180.     IF ¨ GENERATINGCFM THEN
  181.         Macro
  182.         _GXCountFontTables
  183.             move.w              #$020C,D0
  184.             dc.w                $A832
  185.         EndM
  186.     ELSE
  187.         IMPORT_CFM_FUNCTION GXCountFontTables
  188.     ENDIF
  189.  
  190. ;
  191. ; extern long GXGetFontTable(gxFont fontID, long index, void *tableData, gxFontTableTag *tableTag)
  192. ;
  193.     IF ¨ GENERATINGCFM THEN
  194.         Macro
  195.         _GXGetFontTable
  196.             move.w              #$020D,D0
  197.             dc.w                $A832
  198.         EndM
  199.     ELSE
  200.         IMPORT_CFM_FUNCTION GXGetFontTable
  201.     ENDIF
  202.  
  203. ;
  204. ; extern long GXFindFontTable(gxFont fontID, gxFontTableTag tableTag, void *tableData, long *index)
  205. ;
  206.     IF ¨ GENERATINGCFM THEN
  207.         Macro
  208.         _GXFindFontTable
  209.             move.w              #$020E,D0
  210.             dc.w                $A832
  211.         EndM
  212.     ELSE
  213.         IMPORT_CFM_FUNCTION GXFindFontTable
  214.     ENDIF
  215.  
  216. ;
  217. ; extern long GXGetFontTableParts(gxFont fontID, long index, long offset, long length, void *tableData, gxFontTableTag *tableTag)
  218. ;
  219.     IF ¨ GENERATINGCFM THEN
  220.         Macro
  221.         _GXGetFontTableParts
  222.             move.w              #$020F,D0
  223.             dc.w                $A832
  224.         EndM
  225.     ELSE
  226.         IMPORT_CFM_FUNCTION GXGetFontTableParts
  227.     ENDIF
  228.  
  229. ;
  230. ; extern long GXFindFontTableParts(gxFont fontID, gxFontTableTag tableTag, long offset, long length, void *tableData, long *index)
  231. ;
  232.     IF ¨ GENERATINGCFM THEN
  233.         Macro
  234.         _GXFindFontTableParts
  235.             move.w              #$0210,D0
  236.             dc.w                $A832
  237.         EndM
  238.     ELSE
  239.         IMPORT_CFM_FUNCTION GXFindFontTableParts
  240.     ENDIF
  241.  
  242. ;
  243. ; extern long GXSetFontTable(gxFont fontID, long index, gxFontTableTag tableTag, long length, const void *tableData)
  244. ;
  245.     IF ¨ GENERATINGCFM THEN
  246.         Macro
  247.         _GXSetFontTable
  248.             move.w              #$0211,D0
  249.             dc.w                $A832
  250.         EndM
  251.     ELSE
  252.         IMPORT_CFM_FUNCTION GXSetFontTable
  253.     ENDIF
  254.  
  255. ;
  256. ; extern long GXSetFontTableParts(gxFont fontID, long index, gxFontTableTag tableTag, long offset, long oldLength, long newLength, const void *tableData)
  257. ;
  258.     IF ¨ GENERATINGCFM THEN
  259.         Macro
  260.         _GXSetFontTableParts
  261.             move.w              #$0212,D0
  262.             dc.w                $A832
  263.         EndM
  264.     ELSE
  265.         IMPORT_CFM_FUNCTION GXSetFontTableParts
  266.     ENDIF
  267.  
  268. ;
  269. ; extern long GXDeleteFontTable(gxFont fontID, long index, gxFontTableTag tableTag)
  270. ;
  271.     IF ¨ GENERATINGCFM THEN
  272.         Macro
  273.         _GXDeleteFontTable
  274.             move.w              #$0213,D0
  275.             dc.w                $A832
  276.         EndM
  277.     ELSE
  278.         IMPORT_CFM_FUNCTION GXDeleteFontTable
  279.     ENDIF
  280.  
  281. ;
  282. ; extern long GXCountFontNames(gxFont fontID)
  283. ;
  284.     IF ¨ GENERATINGCFM THEN
  285.         Macro
  286.         _GXCountFontNames
  287.             move.w              #$0214,D0
  288.             dc.w                $A832
  289.         EndM
  290.     ELSE
  291.         IMPORT_CFM_FUNCTION GXCountFontNames
  292.     ENDIF
  293.  
  294. ;
  295. ; extern long GXGetFontName(gxFont fontID, long index, gxFontName *name, gxFontPlatform *platform, gxFontScript *script, gxFontLanguage *language, unsigned char text[2147483647])
  296. ;
  297.     IF ¨ GENERATINGCFM THEN
  298.         Macro
  299.         _GXGetFontName
  300.             move.w              #$0215,D0
  301.             dc.w                $A832
  302.         EndM
  303.     ELSE
  304.         IMPORT_CFM_FUNCTION GXGetFontName
  305.     ENDIF
  306.  
  307. ;
  308. ; extern long GXFindFontName(gxFont fontID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, unsigned char text[2147483647], long *index)
  309. ;
  310.     IF ¨ GENERATINGCFM THEN
  311.         Macro
  312.         _GXFindFontName
  313.             move.w              #$0216,D0
  314.             dc.w                $A832
  315.         EndM
  316.     ELSE
  317.         IMPORT_CFM_FUNCTION GXFindFontName
  318.     ENDIF
  319.  
  320. ;
  321. ; extern long GXSetFontName(gxFont fontID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long length, const unsigned char text[2147483647])
  322. ;
  323.     IF ¨ GENERATINGCFM THEN
  324.         Macro
  325.         _GXSetFontName
  326.             move.w              #$0217,D0
  327.             dc.w                $A832
  328.         EndM
  329.     ELSE
  330.         IMPORT_CFM_FUNCTION GXSetFontName
  331.     ENDIF
  332.  
  333. ;
  334. ; extern long GXDeleteFontName(gxFont fontID, long index, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language)
  335. ;
  336.     IF ¨ GENERATINGCFM THEN
  337.         Macro
  338.         _GXDeleteFontName
  339.             move.w              #$0218,D0
  340.             dc.w                $A832
  341.         EndM
  342.     ELSE
  343.         IMPORT_CFM_FUNCTION GXDeleteFontName
  344.     ENDIF
  345.  
  346. ;
  347. ; extern gxFontName GXNewFontNameID(gxFont fontID)
  348. ;
  349.     IF ¨ GENERATINGCFM THEN
  350.         Macro
  351.         _GXNewFontNameID
  352.             move.w              #$0219,D0
  353.             dc.w                $A832
  354.         EndM
  355.     ELSE
  356.         IMPORT_CFM_FUNCTION GXNewFontNameID
  357.     ENDIF
  358.  
  359. ;
  360. ; extern long GXCountFontEncodings(gxFont fontID)
  361. ;
  362.     IF ¨ GENERATINGCFM THEN
  363.         Macro
  364.         _GXCountFontEncodings
  365.             move.w              #$021A,D0
  366.             dc.w                $A832
  367.         EndM
  368.     ELSE
  369.         IMPORT_CFM_FUNCTION GXCountFontEncodings
  370.     ENDIF
  371.  
  372. ;
  373. ; extern gxFontPlatform GXGetFontEncoding(gxFont fontID, long index, gxFontScript *script, gxFontLanguage *language)
  374. ;
  375.     IF ¨ GENERATINGCFM THEN
  376.         Macro
  377.         _GXGetFontEncoding
  378.             move.w              #$021B,D0
  379.             dc.w                $A832
  380.         EndM
  381.     ELSE
  382.         IMPORT_CFM_FUNCTION GXGetFontEncoding
  383.     ENDIF
  384.  
  385. ;
  386. ; extern long GXFindFontEncoding(gxFont fontID, gxFontPlatform platform, gxFontScript script, gxFontLanguage language)
  387. ;
  388.     IF ¨ GENERATINGCFM THEN
  389.         Macro
  390.         _GXFindFontEncoding
  391.             move.w              #$021C,D0
  392.             dc.w                $A832
  393.         EndM
  394.     ELSE
  395.         IMPORT_CFM_FUNCTION GXFindFontEncoding
  396.     ENDIF
  397.  
  398. ;
  399. ; extern long GXApplyFontEncoding(gxFont fontID, long index, long *length, const unsigned char text[2147483647], long count, unsigned short glyphs[2147483647], char was16Bit[2147483647])
  400. ;
  401.     IF ¨ GENERATINGCFM THEN
  402.         Macro
  403.         _GXApplyFontEncoding
  404.             move.w              #$021D,D0
  405.             dc.w                $A832
  406.         EndM
  407.     ELSE
  408.         IMPORT_CFM_FUNCTION GXApplyFontEncoding
  409.     ENDIF
  410.  
  411. ;
  412. ; extern long GXCountFontVariations(gxFont fontID)
  413. ;
  414.     IF ¨ GENERATINGCFM THEN
  415.         Macro
  416.         _GXCountFontVariations
  417.             move.w              #$021E,D0
  418.             dc.w                $A832
  419.         EndM
  420.     ELSE
  421.         IMPORT_CFM_FUNCTION GXCountFontVariations
  422.     ENDIF
  423.  
  424. ;
  425. ; extern long GXFindFontVariation(gxFont fontID, gxFontVariationTag variationTag, Fixed *minValue, Fixed *defaultValue, Fixed *maxValue, gxFontName *name)
  426. ;
  427.     IF ¨ GENERATINGCFM THEN
  428.         Macro
  429.         _GXFindFontVariation
  430.             move.w              #$021F,D0
  431.             dc.w                $A832
  432.         EndM
  433.     ELSE
  434.         IMPORT_CFM_FUNCTION GXFindFontVariation
  435.     ENDIF
  436.  
  437. ;
  438. ; extern gxFontVariationTag GXGetFontVariation(gxFont fontID, long index, Fixed *minValue, Fixed *defaultValue, Fixed *maxValue, gxFontName *name)
  439. ;
  440.     IF ¨ GENERATINGCFM THEN
  441.         Macro
  442.         _GXGetFontVariation
  443.             move.w              #$0220,D0
  444.             dc.w                $A832
  445.         EndM
  446.     ELSE
  447.         IMPORT_CFM_FUNCTION GXGetFontVariation
  448.     ENDIF
  449.  
  450. ;
  451. ; extern long GXCountFontInstances(gxFont fontID)
  452. ;
  453.     IF ¨ GENERATINGCFM THEN
  454.         Macro
  455.         _GXCountFontInstances
  456.             move.w              #$0221,D0
  457.             dc.w                $A832
  458.         EndM
  459.     ELSE
  460.         IMPORT_CFM_FUNCTION GXCountFontInstances
  461.     ENDIF
  462.  
  463. ;
  464. ; extern gxFontName GXGetFontInstance(gxFont fontID, long index, gxFontVariation variation[2147483647])
  465. ;
  466.     IF ¨ GENERATINGCFM THEN
  467.         Macro
  468.         _GXGetFontInstance
  469.             move.w              #$0222,D0
  470.             dc.w                $A832
  471.         EndM
  472.     ELSE
  473.         IMPORT_CFM_FUNCTION GXGetFontInstance
  474.     ENDIF
  475.  
  476. ;
  477. ; extern long GXSetFontInstance(gxFont fontID, long index, gxFontName name, const gxFontVariation variation[2147483647])
  478. ;
  479.     IF ¨ GENERATINGCFM THEN
  480.         Macro
  481.         _GXSetFontInstance
  482.             move.w              #$0223,D0
  483.             dc.w                $A832
  484.         EndM
  485.     ELSE
  486.         IMPORT_CFM_FUNCTION GXSetFontInstance
  487.     ENDIF
  488.  
  489. ;
  490. ; extern long GXDeleteFontInstance(gxFont fontID, long index, gxFontName name)
  491. ;
  492.     IF ¨ GENERATINGCFM THEN
  493.         Macro
  494.         _GXDeleteFontInstance
  495.             move.w              #$0224,D0
  496.             dc.w                $A832
  497.         EndM
  498.     ELSE
  499.         IMPORT_CFM_FUNCTION GXDeleteFontInstance
  500.     ENDIF
  501.  
  502. ;
  503. ; extern long GXCountFontDescriptors(gxFont fontID)
  504. ;
  505.     IF ¨ GENERATINGCFM THEN
  506.         Macro
  507.         _GXCountFontDescriptors
  508.             move.w              #$0225,D0
  509.             dc.w                $A832
  510.         EndM
  511.     ELSE
  512.         IMPORT_CFM_FUNCTION GXCountFontDescriptors
  513.     ENDIF
  514.  
  515. ;
  516. ; extern gxFontDescriptorTag GXGetFontDescriptor(gxFont fontID, long index, Fixed *descriptorValue)
  517. ;
  518.     IF ¨ GENERATINGCFM THEN
  519.         Macro
  520.         _GXGetFontDescriptor
  521.             move.w              #$0226,D0
  522.             dc.w                $A832
  523.         EndM
  524.     ELSE
  525.         IMPORT_CFM_FUNCTION GXGetFontDescriptor
  526.     ENDIF
  527.  
  528. ;
  529. ; extern long GXFindFontDescriptor(gxFont fontID, gxFontDescriptorTag descriptorTag, Fixed *descriptorValue)
  530. ;
  531.     IF ¨ GENERATINGCFM THEN
  532.         Macro
  533.         _GXFindFontDescriptor
  534.             move.w              #$0227,D0
  535.             dc.w                $A832
  536.         EndM
  537.     ELSE
  538.         IMPORT_CFM_FUNCTION GXFindFontDescriptor
  539.     ENDIF
  540.  
  541. ;
  542. ; extern long GXSetFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag, Fixed descriptorValue)
  543. ;
  544.     IF ¨ GENERATINGCFM THEN
  545.         Macro
  546.         _GXSetFontDescriptor
  547.             move.w              #$0228,D0
  548.             dc.w                $A832
  549.         EndM
  550.     ELSE
  551.         IMPORT_CFM_FUNCTION GXSetFontDescriptor
  552.     ENDIF
  553.  
  554. ;
  555. ; extern long GXDeleteFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag)
  556. ;
  557.     IF ¨ GENERATINGCFM THEN
  558.         Macro
  559.         _GXDeleteFontDescriptor
  560.             move.w              #$0229,D0
  561.             dc.w                $A832
  562.         EndM
  563.     ELSE
  564.         IMPORT_CFM_FUNCTION GXDeleteFontDescriptor
  565.     ENDIF
  566.  
  567. ;
  568. ; extern long GXCountFontFeatures(gxFont fontID)
  569. ;
  570.     IF ¨ GENERATINGCFM THEN
  571.         Macro
  572.         _GXCountFontFeatures
  573.             move.w              #$022A,D0
  574.             dc.w                $A832
  575.         EndM
  576.     ELSE
  577.         IMPORT_CFM_FUNCTION GXCountFontFeatures
  578.     ENDIF
  579.  
  580. ;
  581. ; extern gxFontName GXGetFontFeature(gxFont fontID, long index, gxFontFeatureFlag *flags, long *settingCount, gxFontFeatureSetting settings[2147483647], gxFontFeature *feature)
  582. ;
  583.     IF ¨ GENERATINGCFM THEN
  584.         Macro
  585.         _GXGetFontFeature
  586.             move.w              #$022B,D0
  587.             dc.w                $A832
  588.         EndM
  589.     ELSE
  590.         IMPORT_CFM_FUNCTION GXGetFontFeature
  591.     ENDIF
  592.  
  593. ;
  594. ; extern gxFontName GXFindFontFeature(gxFont fontID, gxFontFeature feature, gxFontFeatureFlag *flags, long *settingCount, gxFontFeatureSetting settings[2147483647], long *index)
  595. ;
  596.     IF ¨ GENERATINGCFM THEN
  597.         Macro
  598.         _GXFindFontFeature
  599.             move.w              #$022C,D0
  600.             dc.w                $A832
  601.         EndM
  602.     ELSE
  603.         IMPORT_CFM_FUNCTION GXFindFontFeature
  604.     ENDIF
  605.  
  606. ;
  607. ; extern long GXGetFontDefaultFeatures(gxFont fontID, gxRunFeature features[2147483647])
  608. ;
  609.     IF ¨ GENERATINGCFM THEN
  610.         Macro
  611.         _GXGetFontDefaultFeatures
  612.             move.w              #$0274,D0
  613.             dc.w                $A832
  614.         EndM
  615.     ELSE
  616.         IMPORT_CFM_FUNCTION GXGetFontDefaultFeatures
  617.     ENDIF
  618.  
  619. ;
  620. ; extern void GXFlattenFont(gxFont source, scalerStream *stream, gxSpoolBlock *block)
  621. ;
  622.     IF ¨ GENERATINGCFM THEN
  623.         Macro
  624.         _GXFlattenFont
  625.             move.w              #$022D,D0
  626.             dc.w                $A832
  627.         EndM
  628.     ELSE
  629.         IMPORT_CFM_FUNCTION GXFlattenFont
  630.     ENDIF
  631.  
  632.     ENDIF
  633.     ENDIF ; __GXFONTS__ 
  634.  
  635.